<template>
	<view style="	margin: 0 24rpx;">
		<view class="option border-bottom-x">
			<input type="text" v-model="name" class="input-class" />
		</view>
		<view class="save-btn" @tap="nameOk">确定</view>
	</view>

</template>

<script>
	/**
	 * 姓名页面
	 */
	export default {
		data() {
			return {
				name: ''
			}
		},
		onLoad() {
			// if (this.$Route.query) {
			// 	// console.log("this.$Route.query: ",this.$Route.query);
			// 	this.name = this.$Route.query.nickname || ''
			// }
		},
		methods: {
			/**
			 * 返回上一页携带参数
			 */
			nameOk() {
				// if (this.$tools.isEmptyOrSpaces(this.name)) {
				// 	return this.$tools.showMsg('姓名不能为空~')
				// }
				// let data = {
				// 	name: this.name
				// }
				// uni.$emit('editName',data)
				//  this.$tools.showMsg('保存成功~')
				//  this.$tools.pagesBack()
			}
		}
	}
</script>

<style lang="scss">
	.option {
		padding-top: 30rpx;
		display: flex;
		background: #fff;
		align-items: center;
	}

	.input-class {
		width: 100%;
		// height: 100%;
		height: 68rpx;

		padding-bottom: 20rpx;
		// border: 1rpx solid red;
	}

	.border-bottom-x {
		border-bottom: 4rpx solid #F5F5F5;
	}

	.save-btn {
		position: fixed;
		bottom: 60rpx;
		left: 48rpx;
		right: 48rpx;
		line-height: 96rpx;
		text-align: center;

		font-size: 32rpx;
		background: linear-gradient(128.5deg, #FAE568FF 0%, #FFC82FFF 100%), #CCCCCCFF;
		border-radius: 96rpx;
	}
</style>
